package com.king01.service;

import com.king01.entity.Branch_goods;
import com.king01.entity.Outlibrary_goods;
import com.king01.entity.Staff;
import com.king01.vo.OutlibraryVo2;
import com.king01.vo.Result;
import com.king01.vo.TransferExMainVo;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;

public interface OutlibraryService {
    //出库审核数据
    public Result selectAll(Integer currentPage, Integer pageSize);

    //添加出库审核的数据
    public Result addOutlibrary(Integer outmethod);

    public Result lsaddOutlibrary(Integer outmethod);

    // 获取outlibrary中最大的id
    public Result maxId();
    //添加数据到outlibrary-goods表
    public Result addOutlibraryGoods(OutlibraryVo2 outlibraryVo2, Integer cid);
    //添加批量数据到outlibrary-goods表
    public Result addOutlibraryGoodspl(List<OutlibraryVo2> list, Integer cid);
    //根据cid查询出出库的商品
    public Result selectOutByCid(Integer cid);
    //获取当前店铺库存表的数据
    public Result selectBgByBranchid(Integer branchid);

    public Result selectBgByBranchid2(Integer branchid);
    //修改通过后的数据
    public Result updateSuccess(Branch_goods branch_goods);
    //修改outlibrary表的状态和时间
    public Result updateoutlibrary(Integer cid);
    //驳回时修改outlibrary表的状态和时间
    public Result updateoutlibrary2(Integer cid,String remarks);

    //出库审核详细操作
    public Result find(Integer cid);
    //出库信息主表
    public Result selectAll2(Integer currentPage, Integer pageSize ,OutlibraryVo2 outlibraryVo2);
    //平调信息主表数据
    public Result selectMain(Integer currentPage, Integer pageSize, Integer branchid);
    //平调审核主表数据
    public Result selectAll3(Integer currentPage,Integer pageSize);
    //平调审核详细信息
    public Result find2(Integer cid);
    //平调出库按钮 添加数据
    public Result add2(Integer newbranchid);
    //获取最大cid
    public Result maxId2();
    //添加数据到outlibrarytransfer_goods中
    public Result addByOg(Outlibrary_goods outlibrary_goods);
    //根据cid查询出出库的商品
    public Result selectOutByCid2(Integer cid);

    public Result updateoutlibrary3(Integer cid);
    public Result updateoutlibrary4(Integer cid,String remarks);
    public Result updateBranch_goods(OutlibraryVo2 outlibraryVo2);
    public Result selectBranch_goods(OutlibraryVo2 outlibraryVo2);
    //添加商品
    public Result addDoodsByBranchid(Integer branchid,Integer goodsid,Integer counts);
}
